package cn.wolfcode.qo;

import cn.wolfcode.util.DateUtil;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Getter
@Setter
public class CustomerReportObjectQuery extends QueryObject {
    private String groupType = "e.name";//分组类型,默认按照员工分组
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date startDate;//开始日期
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endDate;//结束日期

    public Date getEndDate() {
        return DateUtil.getEndDate(endDate);
    }
}
